<?php
namespace app\setting\controller;
use app\setting\service\system\Logic as RuinuoLogic;
use think\facade\Request;
use app\common\middleware\Auth;
use app\common\middleware\Power;
use app\common\middleware\Log;

class System
{
    protected $middleware = [Auth::class => [], Power::class => [], Log::class => []];
    /*明细*/
    public function Detail()
    {
        if (Request::isAjax() || Request::isPost()) {
            $RuinuoLogic = new RuinuoLogic();
            $params=input();
            $params['id']='13';
            $data=$RuinuoLogic->Detail($params);
            return BackCode($data['data'], $data['code'], $data['msg']);
        }
        return ViewTpl('setting/system/form');
    }
    /*修改数据*/
    public function Edit()
    {
        if (Request::isAjax() || Request::isPost()) {
            $RuinuoLogic = new RuinuoLogic();
            $params=input();
            $params['id']='13';
            $data=$RuinuoLogic->Edit($params);
            return BackCode($data['data'], $data['code'], $data['msg']);
        }
        return ViewTpl('setting/system/form');
    }


}